﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace Redis.Utils
{
    /// <summary>
    /// redis配置信息加载
    /// </summary>
    internal class RedisManager
    {
        /// <summary>
        /// 配置信息实体
        /// </summary>
        public static readonly RedisSection Instance = GetSection();

        private static RedisSection GetSection()
        {
            RedisSection config = ConfigurationManager.GetSection("RedisSection") as RedisSection
                ?? new RedisSection();
            return config;
        }
    }
}
